home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v9n03.arc / SETUPSMF.CPY < prev    next >
Text File  |  1990-01-12  |  4KB  |  82 lines

  1. ECHO OFF
  2. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  3. ECHO ║ SCANmax will check the current disk's system sectors and all files.     ║
  4. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  5. ECHO ║ If FASTrun was executed first, directory ))PCITK.TMP will be used to    ║
  6. ECHO ║ load all programs and batch files, otherwise they will be loaded from   ║
  7. ECHO ║ the CHECK diskette.                                                     ║
  8. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  9. ECHO ║    PCDATA TOOLKIT 1.0 Copyright (C) 1990 Ziff Communications Co.        ║
  10. ECHO ║                    PC Magazine ■ Wolfgang Stiller                       ║
  11. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  12. IF "%1"=="" goto Help
  13. IF %1==? goto Help
  14. CD %1\
  15. IF NOT EXIST %1CHKBOOT.PRM GOTO  MissingMT
  16. IF NOT EXIST %1DELFILES.BAT GOTO  MissingMT
  17. IF "%PATH%"=="\))PCITK.TMP" GOTO Start
  18. IF NOT EXIST %1SCANRFDR.BAT GOTO  MissingADS
  19. IF NOT EXIST %1CHKDSK.COM GOTO  MissingADS
  20. IF NOT EXIST %1CFCOMPC.COM GOTO  MissingADS
  21. GOTO Start0
  22. :Help
  23. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  24. ECHO ║ Syntax is   SCANMAX  a:                                                 ║
  25. ECHO ║     where "a:" is the drive containing a CHECK or CHECK-MT diskette.    ║
  26. ECHO ║     The current disk must be the one which is to be checked.            ║
  27. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  28. ECHO ║ SCANmax will check the current disk's boot and partition sectors.       ║
  29. ECHO ║ It will then check the FAT, directory and files for consistency.        ║
  30. ECHO ║ SCANmax will then run the equivalent of a SCANsys, reading and checking ║
  31. ECHO ║ all files for any changes, deletions or additions.  The report will be  ║
  32. ECHO ║ written to file ))SYS.LOG in the root directory of the current disk.    ║
  33. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  34. GOTO End
  35. :MissingMT
  36. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  37. ECHO ║ You MUST have a valid CHECK or CHECK-MT diskette in the drive which     ║
  38. ECHO ║ you specified with the %1 parameter.                                    ║
  39. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  40. ECHO ║ You are missing the CHKBOOT.PRM or DELFILES.BAT.                        ║
  41. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  42. GOTO End
  43. :MissingADS
  44. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  45. ECHO ║ You MUST have a valid CHECK or CHECK-MT diskette in the drive which     ║
  46. ECHO ║ you specified with the %1 parameter.                                    ║
  47. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  48. ECHO ║ You are missing CHKDSK.COM, CFCOMPC.COM or SCANRFDR.BAT.                ║
  49. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  50. GOTO End
  51. :BadXall
  52. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  53. ECHO ║ Xall has failed.  Please check the prior error messages. Most likely    ║
  54. ECHO ║ your COMSPEC environment variable does not point to a good COMMAND.COM. ║
  55. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  56. GOTO End
  57. :   Enter here if we are NOT executing on a "FASTrun" system
  58. :Start0
  59. PATH=%1\
  60. :
  61. :   Enter here if "FASTrun" has set PATH and COMSPEC
  62. :Start
  63. CHKBOOT %1CHKBOOT.PRM/B
  64. CHKDSK/F
  65. CD \
  66. Xall scanRFdr %1
  67. IF ERRORLEVEL 32 GOTO BadXall
  68. ECHO ╔════════════════════════════════════════════════════════════════╗
  69. ECHO ║             * * *   Checking is complete   * * *               ║
  70. ECHO ╟────────────────────────────────────────────────────────────────╢
  71. ECHO ║ To continue, make sure you have a bootable disk in drive %1.   ║
  72. ECHO ╚════════════════════════════════════════════════════════════════╝
  73. CD %1\
  74. IF NOT "%PATH%"=="\))PCITK.TMP" GOTO End
  75. ECHO  Now removing copied files from disk and restoring path.
  76. CD \))PCITK.TMP
  77. SET COMSPEC=%1\COMMAND.COM
  78. PATH=%1\
  79. CD %1\
  80. %1DELFILES
  81. :End
  82.